package com.capinfo.accumulation.service.accounting.mybits.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.capinfo.accumulation.dao. DICTIONARY_SORTDao;
import com.capinfo.accumulation.model.accounting.mybist. DICTIONARY_SORT;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.DICTIONARY_SORTServiceI;

@Service("dICTIONARY_SORTService")
public class  DICTIONARY_SORTServiceImpl implements  DICTIONARY_SORTServiceI {
	
	@Autowired
	 DICTIONARY_SORTDao  dICTIONARY_SORTDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.dICTIONARY_SORTDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(DICTIONARY_SORT record) {
		return this.dICTIONARY_SORTDao.insertSelective(record);
	}

	@Override
	public DICTIONARY_SORT selectByPrimaryKey(String id) {
		return this.dICTIONARY_SORTDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(DICTIONARY_SORT record) {
		return this.dICTIONARY_SORTDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<DICTIONARY_SORT> retList = this.dICTIONARY_SORTDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}

}
